import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/merchant/order/index`,
		name: "获取订单列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	express: {
		url: `${config.API_URL}/merchant/order/express`,
		name: "订单物流",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	doExpress: {
		url: `${config.API_URL}/merchant/order/express`,
		name: "物流发货",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	detail: {
		url: `${config.API_URL}/merchant/order/detail`,
		name: "订单详情",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	log: {
		url: `${config.API_URL}/merchant/order/log`,
		name: "订单日志",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	complete: {
		url: `${config.API_URL}/merchant/order/complete`,
		name: "订单完成",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	del: {
		url: `${config.API_URL}/merchant/order/del`,
		name: "订单删除",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	export: {
		url: `${config.API_URL}/merchant/order/export`,
		name: "订单导出",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
